Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

258
Visualizações
My react-simple-image-slider seams not working | ReactJS

Im having trouble with this Reactjs component. I have imported and installed the component, type in necessary code. But it appeared with a black slider Here is the code I imported:

import React from "react";
import "./Banner.css";
import SimpleImageSlider from "react-simple-image-slider";

const image = [
  { url: "./banner1.png" },
  { url: "./banner2.png" },
];

const Banner = () => {
  return (
    <>
      <SimpleImageSlider
        width={1920}
        height={1080}
        images={image}
        style={Banner.css}
        slideDuration={1}
        navStyle={1}
        showBullets
        Shownavs
      />
    </>
  )
}

export default Banner

Here is how it displayed

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

***Import like this it will work***
import image1 from './image1.jpg';
import image2 from './image2.jpg';
import image3 from './image3.jpg'

 const image = [
        { url: image1 }, 
        { url: image2 },
        { url: image3 }
    ];
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda